#include "PatternTable.h"
using namespace std;

PatternTable::PatternTable(){
	_size =0;
	_table = vector<Pattern>();
}
INDEX PatternTable::insertPattern(INTEGER type, LINENUM line, STRING varName, vector<Pattern_node> tNode){
	Pattern temp = Pattern(type,line,varName,tNode);
	_table.push_back(temp);	
	_size++;
	return _size;
}
Pattern PatternTable::at(INDEX index){
	return _table.at(index);
}
vector<Pattern> PatternTable::getPatternTable() {
	return _table;
}
int PatternTable::getPatternSize() {
	return _size;
}